From: Klaus Purer Date: Sat, 31 Mar 2018 09:33:14 +0000 (+0200) Subject: tests(help): Fix assertion by using the full line text X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~113^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9af095adab33af3176112317f87bc42e297b7449;p=cargo.git tests(help): Fix assertion by using the full line text --- diff --git a/tests/testsuite/cargo_command.rs b/tests/testsuite/cargo_command.rs index eecf74a84..d5ea78fa9 100644 --- a/tests/testsuite/cargo_command.rs +++ b/tests/testsuite/cargo_command.rs @@ -338,8 +338,8 @@ fn explain() { fn z_flags_help() { assert_that( cargo_process().arg("-Z").arg("help"), - execs() - .with_status(0) - .with_stdout_contains("-Z unstable-options"), + execs().with_status(0).with_stdout_contains( + " -Z unstable-options -- Allow the usage of unstable options such as --registry", + ), ); }